<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../jquery-1.7.2.js"></script>
</head>
<body>
<script>
$(function(){
    var prison = (function(){
        var prisoner = 'josh';
        return {prisoner:prisoner}
    })();
    console.log(prison.prisoner);
})
</script>
</body>
</html>